package thread;

public class ThreadInfoDemo {
    public static void main(String[] args) {

        Thread t1=new Thread("坤坤"){
            @Override
            public void run() {
                System.out.println( this.getName());
                System.out.println(this.getId());//id：唯一标识
                System.out.println(this.getPriority());

                System.out.println(this.isInterrupted());//是否被中断
                System.out.println(this.isDaemon());//是否是守护线程
                System.out.println(this.isAlive());//是否还活着
            }
        };
        t1.start();
    }
}
